<?php

namespace DP\Bridge;

use DP\Bridge\Core\DrawInterface;
use DP\Bridge\Core\Shape;

class Circle extends Shape
{
    private $x, $y, $r, $api;

    public function __construct($x, $y, $r, DrawInterface $api)
    {
        $this->x = $x;
        $this->y = $y;
        $this->r = $r;
        $this->api = $api;
    }

    public function draw()
    {
        return $this->api->drawCircle($this->x, $this->y, $this->r);
    }
}
